package com.cskaoyan.javase.other._1packaging;

/**
 * 包装类型中封装了该类型的最大值,最小值等常量
 *
 * @since 11:23
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
    public static void main(String[] args) {
        System.out.println(Byte.MAX_VALUE + 1);
        System.out.println(((byte) (Byte.MAX_VALUE + 1)));
        System.out.println(Short.MAX_VALUE + 1);
        System.out.println(((short) (Short.MAX_VALUE + 1)));

        System.out.println(Character.MAX_VALUE + 1);

        // Numeric overflow in expression
        System.out.println(Integer.MAX_VALUE + 1);

        System.out.println(Long.MAX_VALUE + 1);
    }
}
